<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="author" content="23ps" />
    <meta name="copyright" content="www.23ps.com" />
    <meta name="keywords" content="{dede:field name='keywords'/}" />
    <meta name="description" content="{dede:field name='description' function='html2text(@me)'/}" />
    <title>{dede:field.seotitle /}[{dede:pagelist listsize='0' listitem='pageno' function='html2text(@me);'runphp="yes"}@me=str_replace(' ','',@me);{/dede:pagelist}]_{dede:global.cfg_webname/}</title>
    <link href="{dede:global.cfg_templets_skin/}/style/style.css" rel="stylesheet" type="text/css" />
    <link href="/rssfeed.xml" rel="alternate" type="application/rss+xml" title="图片处理教程网 RSS Feed" />
    <link href="/opensearch.xml" rel="search" type="application/opensearchdescription+xml" title="图片处理教程网" />
	<script src="{dede:global.cfg_templets_skin/}/js/jquery.js" type="text/javascript"></script>
    
</head>
<body class="listpage">
{dede:include filename="head.htm"/}
<!-- /header -->

    <!-- content -->
    <div class="content clearfix">
        <div class="breadcrumbs">{dede:field name='position'/}</div>
        <div class="left-sidebar">
            <div class="mod-box mod-category-list">
                <div class="mod-box-head">
                    <h4 class="title">教程分类</h4>
                </div>
                <div class="mod-box-body">
                    <ul class="clearfix">
                    {dede:channel row='30' currentstyle="<li class='on'><a href='~typelink~'>~typename~</a> </li>"}
					 <li><a href='[field:typelink/]'>[field:typename/]</a> </li>
					{/dede:channel}
					
					{dede:global.tid runphp='yes'}
					$list = '';
					$tid = @me;
					if($tid >=4 && $tid <=17 || $tid == 70 || $tid == 67 || $tid == 68 || $tid == 69 || $tid == 72 || $tid == 71){
						$dsql = new dedesql();
                        $sql = "select * from ps_arctype where id between 4 and 17 or id in(70,67,68,69,70,72) ORDER BY sortrank ASC";
                        $dsql->Execute('me',$sql);
	                    $list = "";
	                    while($arr = $dsql->GetArray('me'))
			            {
			            	$thisclass = '';
			            	if($arr['id'] == $tid){
			            		$thisclass = " class='on'";
			            	}
			            	$list .= "<li {$thisclass}><a href='{$arr['typedir']}/'>{$arr['typename']}</a></li>";
			            }
			            
					}
                    if($tid == 61){
                        $list = '<li><a href="/photoshop/jichuzhishi/">基础教程</a></li><li><a href="/photoshop/shangsejiqiao/">上色技巧</a></li><li><a href="/photoshop/shuhuijiaocheng/">鼠绘教程</a></li><li><a href="/photoshop/xiutujiaocheng/">修图教程</a></li><li><a href="/photoshop/taoqianjiaocheng/">套签教程</a></li><li><a href="/photoshop/diaosejiqiao/">调色技巧</a></li><li><a href="/photoshop/koutujiqiao/">抠图技巧</a></li><li><a href="/photoshop/mopimeibai/">磨皮美白</a></li><li><a href="/photoshop/tuxiangxiaoguo/">图像效果</a></li><li><a href="/photoshop/feizhuliu/">非主流</a></li><li><a href="/photoshop/beijingjiaochen/">背景教程</a></li><li><a href="/photoshop/zitixiaoguo/">字体效果</a></li><li><a href="/photoshop/biankuangxiaoguo/">边框效果</a></li><li><a href="/photoshop/shipinjiaocheng/">视频教程</a></li><li><a href="/photoshop/imageready/">ImageReady</a></li><li><a href="/photoshop/yihuajiemu/">移花接木</a></li><li><a href="/photoshop/chuangyisheji/">创意设计</a></li><li><a href="/photoshop/shangyesheji/">商业设计</a></li><li><a href="/photoshop/qitajiaocheng/">其它教程</a></li>';
                    }
					@me = $list;
                    
					{/dede:global.tid}
                    </ul>
                </div>
                <div class="mod-box-foot">
                </div>
            </div>
            <!-- Category:END -->
        </div>
        <div class="main-col">
            <div class="mod-tab mod-post-list-1 mod-list-featured-post {dede:pagelist listsize='0' listitem='pageno' function='html2text(@me);'runphp="yes"}@me='page-on-'.str_replace(' ','',@me);{/dede:pagelist}">
                <h1 class="title">"{dede:field.typename commet='仅显示分类名称，无链'/}" 的推荐文章</h1>
                <div class="mod-tab-col" id="list-featured-post">
                {dede:arclist row=5 flag=a}
              		[field:global runphp='yes' name=autoindex]
                  	if (@me == 6) {
                    	$dsql = new dedesql();
                        $ad = $dsql->getOne("select * from ps_myad where tagname='AD-200x200x2'");
                  		@me = '<div class="post-in-ad clearfix">'.$ad['normbody'].'</div>';
                  	}else{
                  	    @me = '';
                  	}
                    [/field:global]
                    <div class="post clearfix" id="[field:id runphp='yes']
                        	 $dsql = new dedesql();
                        	 $id = @me;
                        	 $info = $dsql->getOne("select isfree from ps_addonarticle where aid=".$id);
                        	 if(empty($info['isfree'])){
                        	 	@me = '免费';
                        	 }else{
                        	 	@me = $info['isfree'];
                        	 }
                        	 if(@me == '免费'){
                        	 	@me = 'isfree_1';
                        	 }else{
                        	 	@me = 'isfree_0';
                        	 }
                        	[/field:id]">
                    	
                        
                        <span class="post-image"><a class="thumb" href="[field:arcurl/]"><img src="[field:litpic/]" onerror="this.src='/images/default.jpg'" /></a></span>
                        <h2 class="post-title">[field:textlink/]</h2>
						<p class="text">[field:description/]</p>
						<p class="info">
                        		[field:mid runphp='yes']
                                	$dsql = new dedesql();
                                	$mid = intval(@me);
                                	if($mid == 0) {
                                		$mid = 1;
                                	}
                                	$user = $dsql->getOne("select mid,userid,uname from ps_member where mid=".$mid);
                                	if(empty($user['userid'])){
                                		$username = $user['userid'] = 'admin';
                                	}else if(!empty($user['userid'])){
                                		$username = $user['userid'];
                                	}else{
                                		$username = $user['userid'];
                                	}
                                	@me = "<a href='/member/index.php?uid=".$user['userid']."'>".$username."</a>";
                                [/field:mid]
                        <span>|</span>
                        	[field:id runphp='yes']
                        	 $dsql = new dedesql();
                        	 $id = @me;
                        	 $info = $dsql->getOne("select isfree from ps_addonarticle where aid=".$id);
                        	 if(empty($info['isfree'])){
                        	 	@me = '免费';
                        	 }else{
                        	 	@me = $info['isfree'];
                        	 }
                        	[/field:id]
                        <span>|</span>[field:pubdate function="MyDate('Y-m-d',@me)"/]</p>
                    </div>
                {/dede:arclist}
                </div>
            </div>
            <!-- HomeNewPosts:END -->
            <div class="mod-tab mod-post-list-1">
                <h1 class="title">"{dede:field.typename commet='仅显示分类名称，无链'/}" 的最新文章</h1>
                <div class="mod-tab-col">
                
                {dede:list pagesize='10'}
              		[field:global runphp='yes' name=autoindex]
                  	if (@me == 6) {
                    	$dsql = new dedesql();
                        $ad = $dsql->getOne("select * from ps_myad where tagname='AD-200x200x2'");
                  		@me = '<div class="post-in-ad clearfix">'.$ad['normbody'].'</div>';
                  	}else{
                  	    @me = '';
                  	}
                    [/field:global]
                    <div class="post clearfix" id="[field:id runphp='yes']
                        	 $dsql = new dedesql();
                        	 $id = @me;
                        	 $info = $dsql->getOne("select isfree from ps_addonarticle where aid=".$id);
                        	 if(empty($info['isfree'])){
                        	 	@me = '免费';
                        	 }else{
                        	 	@me = $info['isfree'];
                        	 }
                        	 if(@me == '免费'){
                        	 	@me = 'isfree_1';
                        	 }else{
                        	 	@me = 'isfree_0';
                        	 }
                        	[/field:id]">
                    	
                        
                        <span class="post-image"><a class="thumb" href="[field:arcurl/]"><img src="[field:litpic/]" onerror="this.src='/images/default.jpg'" /></a></span>
                        <h2 class="post-title">[field:textlink/]</h2>
						<p class="text">[field:description/]</p>
						<p class="info">
                        		[field:mid runphp='yes']
                                	$dsql = new dedesql();
                                	$mid = intval(@me);
                                	if($mid == 0) {
                                		$mid = 1;
                                	}
                                	$user = $dsql->getOne("select mid,userid,uname from ps_member where mid=".$mid);
                                	if(empty($user['userid'])){
                                		$username = $user['userid'] = 'admin';
                                	}else if(!empty($user['userid'])){
                                		$username = $user['userid'];
                                	}else{
                                		$username = $user['userid'];
                                	}
                                	@me = "<a href='/member/index.php?uid=".$user['userid']."'>".$username."</a>";
                                [/field:mid]
                        <span>|</span>
                        	[field:id runphp='yes']
                        	 $dsql = new dedesql();
                        	 $id = @me;
                        	 $info = $dsql->getOne("select isfree from ps_addonarticle where aid=".$id);
                        	 if(empty($info['isfree'])){
                        	 	@me = '免费';
                        	 }else{
                        	 	@me = $info['isfree'];
                        	 }
                        	[/field:id]
                        <span>|</span>[field:pubdate function="MyDate('Y-m-d',@me)"/]</p>
                    </div>
                
                {/dede:list}
                    
                    <div class="page-navi">
                        <div class="dede_pages">
                        <ul class="pagelist">
                        {dede:pagelist listitem="info,index,end,pre,next,pageno,option" listsize="3"/}
                        </ul>
                        </div>
                    </div>
                </div>
            </div>
            <!-- HomeNewPosts:END -->
        </div>
        <div class="right-sidebar">
            <div class="ad-300x250">
                {dede:myad name='AD-300x250x1'/}
            </div>
            <!-- ad-300x250:END -->
            <div class="mod-box mod-hot">
                <div class="mod-box-head">
                    <h4 class="title">最热门的教程</h4>
                </div>
                <div class="mod-box-body clearfix">
                    <ul>
                    {dede:arclist row=10 typeid='1,2,3' orderby=click}
                        <li><a href="[field:arcurl/]">[field:title/]</a></li>
                    {/dede:arclist}
                    </ul>
                </div>
                <div class="mod-box-foot">
                </div>
            </div>
            <!-- Ranking:END -->
            <div class="download"><a href="/download.htm"><img src="/templets/23ps/img/download.png" /></a></div>
        </div>
    </div>
    <!-- content end -->

{dede:include filename="footer.htm"/}
<!-- /footer -->

</body>
</html>
